(function() {
	Wallet.widget.DashBoardDataTable = function(el, config) {
		Wallet.widget.DashBoardDataTable.superclass.constructor.call(this, el, config);	
	}
	
	var Lang = YAHOO.lang,
		DataTable = YAHOO.widget.DataTable,
		DataSource = YAHOO.util.DataSource,
		Dom = YAHOO.util.Dom,
		HtmlDataTable = Wallet.widget.HtmlDataTable,
		DashBoardDataTable = Wallet.widget.DashBoardDataTable;
	
	Lang.extend(DashBoardDataTable, HtmlDataTable, {
		columnDefs: [{
			key: "category",
			sortable: true,
			resizeable: true,
			width: "80px",
			label: "Category"
		}, {
			key: "count", 
			formatter: YAHOO.widget.DataTable.formatNumber, 
			sortable: true, resizeable: true, 
			label: "Count"
		}, {
			key: "amount", 
			formatter: YAHOO.widget.DataTable.formatNumber, 
			sortable: true, 
			resizeable: true, 
			label: "Total Amount"
		}],
		
		responseType: YAHOO.util.DataSource.TYPE_HTMLTABLE,
		responseSchema: {   
			fields: [{
				key: "category"
			}, {
				key:"count", 
				parser: YAHOO.util.DataSource.parseNumber
			}, {
				key:"amount", 
				parser: YAHOO.util.DataSource.parseNumber
			}]   
		}
	});
}());